import request from '@/utils/request'

// 查询栏目表列表
export function listPmsColumn(query, pageReq) {
  return request({
    url: '/mall/pmsColumn/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询栏目表详细
export function getPmsColumn(id) {
  return request({
    url: '/mall/pmsColumn/' + id,
    method: 'get'
  })
}

// 新增栏目表
export function addPmsColumn(data) {
  return request({
    url: '/mall/pmsColumn',
    method: 'post',
    data: data
  })
}

// 修改栏目表
export function updatePmsColumn(data) {
  return request({
    url: '/mall/pmsColumn',
    method: 'put',
    data: data
  })
}

// 删除栏目表
export function delPmsColumn(id) {
  return request({
    url: '/mall/pmsColumn/' + id,
    method: 'delete'
  })
}

// 导出栏目表
export function exportPmsColumn(query) {
  return request({
    url: '/mall/pmsColumn/export',
    method: 'get',
    params: query
  })
}
